package net.sky.oa.service.addrbook.impl;

import java.util.List;

import javax.annotation.Resource;

import net.sky.oa.dao.addrbook.AddGroupDao;
import net.sky.oa.model.AddGroup;
import net.sky.oa.service.addrbook.AddGroupService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.htsoft.core.service.impl.BaseServiceImpl;

@Service
@Transactional
public class AddGroupServiceImpl extends BaseServiceImpl<AddGroup> implements AddGroupService {
	
	private AddGroupDao dao;

	@Resource
	public void setDao(AddGroupDao dao) {
		super.setDao(dao);
		this.dao = dao;
	}

	@Transactional(readOnly=true)
	public List<AddGroup> findAllGroup() {
		return this.dao.findAllGroup();
	}
 
}